import request from '@/utils/request'

export function getList (params) {
  return request({
    url: '/category/list',
    method: 'get',
    params
  })
}


export function getProduct (params) {
  return request({
    url: '/category/product',
    method: 'get',
    params
  })
}

export function addData (params) {
  return request({
    url: '/category/add',
    method: 'post',
    data: params
  })
}

export function addProduct (params) {
  return request({
    url: '/category/add_product',
    method: 'post',
    data: params
  })
}

export function delProduct (params) {
  return request({
    url: '/category/del_product',
    method: 'post',
    data: params
  })
}